$(document).ready(function () {

   $("#vali").validate({
	
                      errorClass:'showerror',
	rules: {   
   		start_date:{    
			required : true             
			},                   
		 },   
		          
	 messages: {          
		 start_date : { 
			 required :  "<li> Please select date </li>"
			} ,            	                 
		}      

		
    });
	
	
    
	$('.category').each(function() {
        $(this).rules('add', {
            required: true,
            messages: {
                required:  "<li>Please select Category</li>", 
            }
        });
    });
	
    $('.name').each(function() {
        $(this).rules('add', {
            required: true,
            messages: {
                required:  "<li>Please enter Name</li>",
            }
        });
    });
	
	  $('.file_location').each(function() {
        $(this).rules('add', {
            required: true,
            messages: {
                required:  "<li>Please enter Location</li>",
            }
        });
    });
	
	$('.username').each(function() {
        $(this).rules('add', {
            required: true,
            messages: {
                required:  "<li>Please enter Username</li>",
            }
        });
    });
	
	  $('.hdd').each(function() {
        $(this).rules('add', {
             required: true,
            messages: {
                  required:  "<li>Please select hdd</li>",
            }
        });
    });
	
	 $('.epi').each(function() {
        $(this).rules('add', {
             required: true,
            messages: {
                  required:  "<li>Please enter episode</li>",
            }
        });
    });
	
	 $('.keyword').each(function() {
        $(this).rules('add', {
             required: true,
            messages: {
                  required:  "<li>Please enter Keyword</li>",
            }
        });
    });
	
	
	
	
	/*$("#vali_chk").validate({
	errorClass:'showerror',
     rules: {   
   		epi:{    
			required : true,   
			number : true              
			},  
		start_date:{    
			required : true             
			},                
		 },   
		          
	 messages: {          
		 epi : { 
			required :  "<li> Please input episode </li>",   
			number : "<li> Please input number</li>"
				} ,
		start_date : { 
			required :  "<li> Please select date </li>"
			} ,                       
				           
			 
			                 
			    }      

		
    });*/
	
	
});